package edu.sctu.zhengsenwen.month201505.day20150508;

/**
 * Created by Administrator on 2015/5/8/0008.
 */
public class Factorial {

    public int getFac(int n) {


        if(n==1){
            return 1;
        }else{
            return n*getFac(n-1);

        }
    }
}


